<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="author" content="QinTaoLin">
  <meta name="description" content="hichat | a simple chat application built with node.js and websocket">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>风之吟聊天室</title>
  <link rel="stylesheet" href="./styles/main.css">
  <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
  <link rel="icon" href="./favicon.ico" type="image/x-icon">
</head>

<body>
  <div class="wrapper">
    <div class="banner">
      <span class="name">风之吟聊天室</span>
      <span id="status"></span>
    </div>
    <div id="historyMsg">
    </div>
    <div class="controls">
      <div class="items">
        <input id="colorStyle" type="color" placeHolder='#000' title="font color" />
        <input id="emoji" type="button" value="表情" title="emoji" />
        <label for="sendImage" class="imageLable">
          <input type="button" id="sendImageBtn" value="图片"  />
          <input id="sendImage" type="file" value="图片"/>
        </label>
        <label for="sendMusic" class="musicLable">
          <input type="button" id="sendMusicBtn" value="音乐"  />
          <input id="sendMusic" type="file" value="音乐"/>
        </label>
        <input id="clearBtn" type="button" value="清空" title="clear screen" />
      </div>
      <div class="userInput">
        <textarea id="messageInput" placeHolder="enter to send"></textarea>
        <input id="sendBtn" type="button" value="发送">
      </div>
      <div id="emojiWrapper" class="isNone">
      </div>
    </div>
  </div>
  <div id="loginWrapper">
    <p id="info">连接服务器，请稍候...</p>
    <div id="nickWrapper">
      <input type="text" placeHolder="请输入您的昵称" id="nicknameInput" />
      <input type="button" value="OK" id="loginBtn" />
    </div>
  </div>
  <footer>
    <small>User: QinTaoLin</small>
  </footer>
  <script src="/socket.io/socket.io.js"></script>
  <script src="scripts/hichat.js"></script>
  <script>
    /**REMOVE ME IF YOU CANT ACCESS GOOGLE SERVICE**/
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-46794744-7', 'hichat.herokuapp.com');
      ga('send', 'pageview');
    /**REMOVE END**/
    </script>
</body>

</html>